<template>
</template>
<script>
import axios from 'axios'
export default {
    name: 'registtpl',
    mounted() {
        axios.get('/wx/getcodeurl', {　
                params: { 'Appid': 'wx27a54ca734af2cf8','redirect_uri': 'http://zqdn.aegis-s.com/wx/getwxuser' }
            }).then(function(response) {
                //引导用户根据地址获取code
                location.href= response.data;
            }).catch(function(error) {　　
                console.log(error);　
        });
    }
}
</script>